<nav>
    <div class="main oh">
        <div class="c_logo fl">
            <a href="{:U('Home/Index/index',array('hid'=>'0'))}"><img src="__IMG__/logo6.png" alt=""/></a></div>
        <div class="c_nav_user fr">
            <php>$user = session('name');$photo = session('photo');if(empty($user)){</php>
                <img src="__IMG__/user_no.png" alt=""/>
                <div class="state">
                    <a href="{:U('Home/Register/index')}">登录</a>
                    <a href="{:U('Home/Register/register')}">注册</a>
                </div>
            <php>}else{</php>
                <img src="./uploads/{$photo}" alt=""/>
                <div class="state">
                    <a href="javascript:;">{$user}</a>
                    <a class="small" href="{:U('Home/Register/loginOut')}">退出</a>
                </div>

            <php>}</php>
        </div>
        <ul class="c_nav fr">
            <li data-hid="0"><a href="{:U('Home/Index/index',array('hid'=>'0'))}">首页</a></li>
            <li data-hid="1"><a href="{:U('Home/Index/studyPoint',array('hid'=>'1'))}">资讯</a></li>
            <li data-hid="2"><a href="{:U('Home/Index/test',array('hid'=>'2'))}">演习</a></li>
            <li data-hid="3"><a href="{:U('Home/Index/dream',array('hid'=>'3'))}">远景</a></li>
            <li data-hid="4"><a href="{:U('Home/Index/web',array('hid'=>'4'))}">网站</a></li>
            <li data-hid="5"><a href="{:U('Home/Index/program',array('hid'=>'5'))}">项目</a></li>
            <li data-hid="6"><a href="{:U('Home/Index/live',array('hid'=>'6'))}">生活</a></li>
        </ul>
    </div>
</nav>